import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import Vant from 'vant';
import 'vant/lib/index.css';
import VueLazyload from 'vue-lazyload'

import BaiduMap from 'vue-baidu-map'
Vue.use(BaiduMap, {
  ak: '3XNRuwxmCxFNayTpbNCXCotrNqY05gk3'
})
Vue.use(VueLazyload)

// 注册时可以配置额外的选项
Vue.use(VueLazyload, {
  preLoad: 1.3,
  loading: "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Finews.gtimg.com%2Fnewsapp_match%2F0%2F10559394992%2F0.jpg&refer=http%3A%2F%2Finews.gtimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1631436187&t=6631193e1a66b71441b24c032d75af10",
  attempt: 1
})
Vue.use(Vant);

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
